package com.share.rules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.rules.api.domain.FeeRuleRequestForm;
import com.share.rules.api.domain.FeeRuleResponseVo;
import com.share.rules.domain.FeeRule;


import java.util.List;

public interface FeeRuleService extends IService<FeeRule> {
    /**
     * 查询费用规则列表
     *
     * @param feeRule 费用规则对象
     * @return 费用规则列表
     */
    List<FeeRule> selectFeeRuleList(FeeRule feeRule);

    /**
     * 获取所有费用规则列表
     *
     * @return 所有费用规则列表
     */
    List<FeeRule> getALLFeeRuleList();

    /**
     *  计算订单费用
     * @param calculateOrderFeeForm
     * @return
     */
    FeeRuleResponseVo calculateOrderFee(FeeRuleRequestForm calculateOrderFeeForm);
}
